package verifica.plsdatabase;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import torinoflickrdata.db.FlickrUser;

public class Main2FlickrData {

	/*public static void main (String [] args) throws Exception{
		//continene tutti gli utenti  
		List<FlickrUser> f = new ArrayList<FlickrUser>();
		
		// contiene gli utenti con + di 3 foto
		List<FlickrUser> fuse = new ArrayList<FlickrUser>();
		
		FlickrUserMethods.loadFlickrUser(f, "flickruser.tsv");
		
		
		for(int i = 0; i < f.size(); i++){
			//String user = FlickrUserMethods.find3PicUser(f,f.get(i).username );
		//	if (user !=null){
				fuse.add(f.get(i));
			}
		}
		for (int i = 0; i < fuse.size(); i++) {
			System.out.println("*****************"+fuse.get(i).toString());
		}
		Collections.sort(fuse);
		
		for (int i = 0; i < fuse.size(); i++) {
			System.out.println(fuse.get(i).username+", "+fuse.get(i).lon+", "+fuse.get(i).lat+", "+fuse.get(i).date);
		}
		long ts = 0;
		List<Long>timestamp  = new ArrayList<Long>();
		for (int i = 0; i < fuse.size(); i++) {
			String usr = fuse.get(i).username;
			if(usr.equals("www.tramditorino.it")){
			ts = FlickrUser.getFUTimestamp(fuse.get(i));
			
		    timestamp.add(ts);
			}
		    //System.out.println(timestamp.get(i).toString());
		}
			
		for (int i = 0; i < timestamp.size(); i++) {
			System.out.println("il timestamp: "+timestamp.get(i));
		}
		//KML4FlickrUser.print(fuse, "KML4FlickrUser.kml");
		//FlickrUserMethods.insertDB("TO_bbox/output_3.csv");
		
		//FlickrUserMethods.insertFlickrDB("TO_bbox/output_3.csv");
	}
	*/
}
